Skip to main content

Python City GML Script

This Python script was created to perform the various City GML modifications that were required for the CSDP project. These modifications include:

  • Adding damages to each building based on its GML ID.
  • Modifying the heights of each building possible using a CSV containing heights extrapolated from point cloud.
  • Removing buildings that have neither damages nor modified heights.

The script requires three positional user inputs:

  • Damages CSV - A CSV file containing the GML ID and various damages for each building.
  • GML - A City GML file with buildings.
  • Heights CSV - A CSV file containing the GML ID and actual height for each building.

A detailed IDEF0 diagram of the script is included below.

Python City GML IDEF0